﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Comisiones.Models
{
    public class Local
    {
        //Llaves primarias y foraneas
        [Key]
        //[Key, Column(Order = 0)]
        public int loc_idLocal { get; set; }
        //[Key, Column(Order = 1)]
        public int com_idComercio { get; set; }

        //Atributos
        
        [Required]
        [DisplayName("Nombre")]
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string loc_nombre { get; set; }
        [Required]
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string loc_RUC { get; set; }

        //Objetos Pertenecientes a las llaves foraneas
        
        [ForeignKey("com_idComercio")]
        public Comercio comercio { get; set; }

        public List<PuntoServicio> puntosServicio { get; set; }


    }
}